<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">商家分类</label>
            <div class="layui-input-block">
                <select name="cat_id" lay-verify="required">
                    {foreach name="cats" item="val"}
                    <option value="{$val.id}" {if condition="$row['cat_id']==$val['id']"}selected{/if}>{$val.title}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家名称</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入商家名称" value="{$row.title}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家联系人</label>
            <div class="layui-input-block">
                <input type="text" name="realname" class="layui-input" lay-verify="required" placeholder="请输入商家联系人" value="{$row.realname}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家电话</label>
            <div class="layui-input-block">
                <input type="number" name="mobile" class="layui-input" lay-verify="required" placeholder="请输入商家电话" value="{$row.mobile}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家微信号</label>
            <div class="layui-input-block">
                <input type="text" name="weixinno" class="layui-input" lay-verify="required" placeholder="请输入商家微信号" value="{$row.weixinno}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家服务电话</label>
            <div class="layui-input-block">
                <input type="text" name="servicetel" class="layui-input" lay-verify="required" placeholder="请输入商家服务电话" value="{$row.servicetel}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">商家地址</label>
            <div class="layui-input-block">
                <input type="text" name="address" class="layui-input" lay-verify="required" placeholder="请输入商家地址" value="{$row.address}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司名称</label>
            <div class="layui-input-block">
                <input type="text" name="company" class="layui-input" lay-verify="required" placeholder="请输入公司名称" value="{$row.company}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公司电话</label>
            <div class="layui-input-block">
                <input type="text" name="company_tel" class="layui-input" lay-verify="required" placeholder="请输入公司电话" value="{$row.company_tel}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label required">公司资质</label>
            <div class="layui-input-block layuimini-upload">
                <input name="cardimg" class="layui-input layui-col-xs6"  placeholder="请上传商品封面" value="{$row.cardimg}">
                <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="cardimg" data-upload-number="one" data-upload-exts="png|jpg|ico|jpeg" data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                    <span><a class="layui-btn layui-btn-normal" id="select_cardimg" data-upload-select="cardimg" data-upload-number="one" data-upload-mimetype="image/*"><i class="fa fa-list"></i> 选择</a></span>
                </div>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>